package com.xxx.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author George
 * @since 2023-07-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单ID
     */
    @TableId(value = "Orders_id", type = IdType.ASSIGN_ID)
    private Long ordersId;

    /**
     * 客户ID
     */
    @TableField("Client_id")
    private Long clientId;

    /**
     * 产品ID
     */
    @TableField("Product_id")
    private Long productId;

    /**
     * 订单价格
     */
    @TableField("Orders_price")
    private Double ordersPrice;

    /**
     * 订单数量
     */
    @TableField("Orders_number")
    private Integer ordersNumber;

    /**
     * 订单返利
     */
    @TableField("Orders_rebates")
    private Double ordersRebates;

    /**
     * 订单备注
     */
    @TableField("Orders_detail_memo")
    private String ordersDetailMemo;

    /**
     * 订单支付状态
     */
    @TableField("Orders_state")
    private Integer ordersState;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy月MM日dd")

    private Date gmtCreation;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy月MM日dd")
    private Date gmtModified;

    /**
     * 逻辑删除
     */
    @TableLogic(value = "0", delval = "1")
    private Integer deleted;


}
